package naughtydog.threads.concurrency;

import java.util.ArrayList;
import java.util.Collections;

public class TheModel implements IModel {
	
	
	private ArrayList<Integer> ints = new ArrayList<Integer>();
	private long aLong;
	
	/* (non-Javadoc)
	 * @see naughtydog.threads.concurrency.IModel#getaLong()
	 */
	@Override
	public long getaLong() {
		return aLong;
	}
	
	/* (non-Javadoc)
	 * @see naughtydog.threads.concurrency.IModel#setaLong(long)
	 */
	@Override
	public void setaLong(long aLong) {
		this.aLong = aLong;
	}
	
	/* (non-Javadoc)
	 * @see naughtydog.threads.concurrency.IModel#addInt(int)
	 */
	@Override
	public void addInt(int newInt) {
		ints.add(newInt);
	}
	
	//Ci andrebbe un iterator!
	/* (non-Javadoc)
	 * @see naughtydog.threads.concurrency.IModel#getInts()
	 */
	@Override
	public ArrayList<Integer> getInts() {
		return ints;
	}
	

}
